package com.fkjslee.hos;

import com.fkjslee.hos.entity.PatientInExpert;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * @author fkjslee
 * @date 2017/12/31 at 19:36
 * Copyright (c) 2017 fkjslee. All rights reserved.
 */

public interface PatientInExpertRepository extends JpaRepository<PatientInExpert, Long>{
    PatientInExpert findFirstByExpertId(Long expertId);
    void deleteByExpertIdAndPatientID(Long expertId, Long patientId);
    PatientInExpert findFirstByPatientID(Long patientID);
    List<PatientInExpert> findByExpertId(Long expertId);
}
